package Interfaz;

import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;

/**
 *
 * @author Camilo
 */
public class Plano extends Canvas{
    public ArrayList a;
    
    public Plano(ArrayList m){
        this.setBackground(Color.white);
        this.setSize(400,300);
        a= m;
    }
    
    @Override
   public void paint(Graphics g) {
        g.setColor(Color.RED); 
        //g.fillOval(vx,vy, diam, diam);
        for(int i=0; i < a.size(); i+=2){
            g.fillOval(Integer.parseInt(""+a.get(i))*10,Integer.parseInt(""+a.get(i+1))*10,5,5);
        }
   }
}
